package com.mkb.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mkb.dao.UserInfoDAO;
import com.mkb.entity.UserInfoDO;
import com.mkb.mapper.UserInfoMapper;

import java.util.List;
import java.util.Map;

@Repository
public class UserInfoDAOImpl implements UserInfoDAO{
	
	@Autowired
	private UserInfoMapper userInfoMapper;
	
	@Override
	public int deleteById(Long id) {
		return userInfoMapper.deleteById(id);
	}

	@Override
	public int insert(UserInfoDO record) {
		return userInfoMapper.insert(record);
	}

	@Override
	public UserInfoDO getById(Long id) {
		return userInfoMapper.getById(id);
	}

	@Override
	public int update(UserInfoDO record) {
		return userInfoMapper.update(record);
	}

	@Override
	public int count(Map<String, Object> map) {
		return 0;
	}

	@Override
	public List<UserInfoDO> queryList(Map<String, Object> params) {
		return userInfoMapper.queryList(params);
	}
	
	@Override
        public int insertBatch(List<UserInfoDO> dos) {
           return userInfoMapper.insertBatch(dos);
        }

}
